package main

import (
	"log"
	"net/http"
)

// api网关
func main() {
	mux := http.NewServeMux()
	mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
		w.Write([]byte("欢迎使用苏海恩API网关服务！"))
	})
	if err := http.ListenAndServe(":10001", mux); err != nil {
		log.Fatalf("海恩API网关启动失败%s", err.Error())
	}
}
